package com.pb.news.service;

import com.pb.news.entity.News;

import java.util.List;

/**
 * NewsService--BDQN_WEB_NEWS
 *
 * @author: Jovi
 * @createTime: 2018-03-23 11:28
 **/
public interface NewsService {

     boolean updateNews(News news);

     boolean addNews(News news);

     boolean deleteNews(int id);

     List<News> getNewsList();

    News getNewsById(int id);

    int getTotalCount();

    List<News> getPageNewsList(int pageNo, int pageSize);

}
